package entities 
{
	import org.flixel.FlxG;
	/**
	 * ...
	 * @author morgan
	 */
	public class Collectable extends ReflectionSprite
	{
		public var startY:Number = 0;
		public function Collectable(x:int, y:int, scene:GameScene, image:Class = null) 
		{
			super(x, y, scene, image);
			startY = y;
			this.y += 16;
		}
		
		override public function update():void 
		{
			super.update();
			y = Math.max(y - 50 * FlxG.elapsed, startY);
		}
		
		public function collect(p:Player):void
		{
			kill();
		}
		
	}

}